/*
 * Copyright (c) 2006-2020, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2020-05-21     chenhy       the first version
 */
#ifndef APPLICATIONS_RTC_H_
#define APPLICATIONS_RTC_H_
#include <stdint.h>
typedef struct rtc_time_s{
  uint8_t second;
  uint8_t minute;
  uint8_t hour;
  uint8_t weekday;
  uint8_t day;
  uint8_t month;
  uint8_t year;
} rtc_time_t;
void rtc_get_time(rtc_time_t *rtc_time);
void rtc_set_time(rtc_time_t *rtc_time);
#endif /* APPLICATIONS_RTC_H_ */
